import request from '@/utils/request'

// 获取本月生日用户
export const getBirthdayUsers = () => {
  return request({
    url: '/v2/birthday/month',
    method: 'GET'
  })
}

// 创建本月生日
export const createCurrentMonthBirthdayUser = (data) => {
  return request({
    url: '/v2/birthday/user',
    method: 'POST',
    data
  })
}

// 修改本月生日的名字
export const updateCurrentMonthBirthdayUser = (params) => {
  return request({
    url: '/v2/birthday/user',
    method: 'PUT',
    params
  })
}

// 获取生日列表
export const getList = (params) => {
  return request({
    url: '/v2/birthday/user',
    method: 'GET',
    params
  })
}

// 获取生日祝福短信模版列表
export const getBirthdaySmsTemplate = () => {
  return request({
    url: `/v2/birthday/template`,
    method: 'GET'
  })
}

// 编辑短信模板
export const editBirthdaySmsTemplate = (data) => {
  return request({
    url: `/v2/birthday/template`,
    method: 'POST',
    data
  })
}
